<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
  <th:block th:fragment="menu-item(menuItem)">
    <a
      class="item"
      th:title="${menuItem.status.displayName}"
      th:href="@{${menuItem.status.href}}"
      th:target="${menuItem.spec.target?.value}"
    >
      <th:block th:if="${theme.config.navbar.enable_navbar_icon}">
        <i
          th:class="'m-icon '+${#annotations.getOrDefault(menuItem, 'icon', '')}"
        ></i>
      </th:block>
      [[${menuItem.status.displayName}]]
    </a>
  </th:block>
</html>
